Skip to content

chore(samples): Add samples for A2A plugins - #847

Open
bartek-gralewicz wants to merge 2 commits into
mainfrom
bgralewicz/plugins_samples
Open

bartek-gralewicz wants to merge 2 commits into
mainfrom
bgralewicz/plugins_samples

Conversation

@bartek-gralewicz

Copy link
Copy Markdown
Collaborator

Description

Samples for A2A plugin feature.

New plugins samples are introduced as a dedicated src/samples/plugins directory. src/samples/plugins/README.md contains information about the scope of the sample and how to execute it.

Example run

Client side

[client] HTTP+JSON to http://localhost:41241/a2a/rest, experiment=exp-42
[client] agent replied: Hello World! Nice to meet you!
[client] task 48276c57 is TASK_STATE_COMPLETED

Server side

[agent experiment=exp-42] handling task 48276c57                                                                                     
[SampleAgentExecutor] Processing message 544dce70-e47f-48e7-8752-6c0b8895de03 for task 48276c57-0427-439f-b366-ac45c96cac15 (context:
 f47535e2-b6f3-4d7d-88bc-f5f9c96fd49d)                                                                                               
[SampleAgentExecutor] Prompt response: Hello World! Nice to meet you!                                                                
[audit] task 48276c57: new -> SUBMITTED                                                                                              
[audit] task 48276c57: SUBMITTED -> WORKING                                                                                          
[SampleAgentExecutor] Task 48276c57-0427-439f-b366-ac45c96cac15 finished with state: completed                                       
[audit] task 48276c57: WORKING -> WORKING                                                                                            
[audit] task 48276c57: WORKING -> COMPLETED                                                                                          
[timing] SendStreamingMessage took 1003.5ms, 4 streamed event(s)                                                                     
[audit] SendStreamingMessage over HTTP+JSON experiment=exp-42 ok                                                                     
[timing] GetTask took 0.2ms, 0 streamed event(s)                                                                                     
[audit] GetTask over HTTP+JSON experiment=exp-42 ok  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant